#ifndef MJPEG_CLIENT_H
#define MJPEG_CLIENT_H

#include <QtCore>
#include <QNetworkAccessManager>
#include <QNetworkReply>

#include <QImage>

#include "Camera.h"

class MJPEGClient : public QObject 
{
    Q_OBJECT

public:
    MJPEGClient() : nam( 0 ), reply( 0 ) {}
    
signals:
    void gotNewImage( const QImage* image );

public slots:
    void getVideoFromStreamer( const char* url ); 

    void readyRead();
    void finished();

private:
    QNetworkAccessManager* nam;
    QNetworkReply* reply;


};


#endif //MJPEG_CLIENT_H
